<template>
  <div class="home-panel">
    <div class="header">
      <h4>{{ props.title }}</h4>
      <xtx-more to="/" />
    </div>
    <!-- 商品列表 -->
    <div class="goods-list">
      <!-- 内容的默认插槽 -->
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  title: {
    type: String,
    default: '我的收藏'
  }
})
</script>
<style scoped lang="less">
.goods-list {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
  }
.home-panel {
  background-color: #fff;
  padding: 0 20px;
  margin-top: 20px;
  height: 400px;

  .header {
    height: 66px;
    border-bottom: 1px solid #f5f5f5;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    h4 {
      font-size: 22px;
      font-weight: normal;
    }
  }
}
</style>